﻿@model MvcFlaschi.Models.Flaschi

@{
    ViewBag.Title = "Create";
}

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    
    <fieldset>
        <legend>Anlegen</legend>
        <a href="@Url.Action("Index")" title="Zurück">
            <span class="glyphicon glyphicon-chevron-left">Zurück</span>
        </a>
        <div class="input-fields">
            <div>
                @Html.LabelFor(model => model.FlaschiMenge)
            </div>
            <div>
                @Html.EditorFor(model => model.FlaschiMenge)
                @Html.ValidationMessageFor(model => model.FlaschiMenge)
            </div>
            <div>
                @Html.LabelFor(model => model.FlaschiDate)
            </div>
            <div>
                @Html.EditorFor(model => model.FlaschiDate)
                @Html.ValidationMessageFor(model => model.FlaschiDate)
            </div>
            <div>
                @Html.LabelFor(model => model.FlaschiTime)
            </div>
            <div>
                @Html.EditorFor(model => model.FlaschiTime)
                @Html.ValidationMessageFor(model => model.FlaschiTime)
            </div>
        </div>
        <div>
            <button type="submit" class="btn btn-default btn-default">
                <span class="glyphicon glyphicon-floppy-disk"></span>Speichern
            </button>
            @*@Html.ActionLink("Back to List", "Index")*@

        </div>
    </fieldset>
}



@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/jqueryui")

    <script type="text/javascript">
        $(document).ready(function () {
            $("#FlaschiDate").datepicker({
                dateFormat: "dd.mm.yy"
            });
            $("#FlaschiDate").datepicker("setDate", new Date());
        });
    </script>

}
